package com.xbongbong.saas.feign;

import com.xbongbong.paas.pojo.dto.FormDataListDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 工单通用接口 feign
 *
 * @author lizheng
 */
@FeignClient(name = "xbb-work-order-web", contextId = "workOrderV2CommonFeignClient")
public interface WorkOrderV2CommonFeignClient {

    /**
     * 工单v2通用列表接口
     *
     * @param formDataListDTO 入参
     * @param lang            语言
     * @return 返回数据
     */
    @RequestMapping(value = "pro/v1/workOrderV2/common/list", method = RequestMethod.POST)
    String list(@RequestBody FormDataListDTO formDataListDTO, @RequestParam("lang") String lang);


}
